<?php

// Affichage du form ajout article
if(isset($_GET['view']) && $_GET['view'] == true) {
	if(isset($_GET['token']) && $_GET['token'] != null) {
		if ($_SESSION['tokenab'] == ($_GET['token'] . $_SESSION['tokenb'])) {
			include(dirname(__FILE__) . '/../view/main.php');
		}
		else {
			include(dirname(__FILE__) . '/../view/login.php');
		}
	}
	else {
		include(dirname(__FILE__) . '/../view/login.php');
	}
}
else {
	include(dirname(__FILE__) . '/../view/login.php');
}

?>